package com.yh.doing.command_pattern.demo;

/**
 * @program: design-patterns
 * @description:
 * @author: yangh0597@163.com
 * @date: 2022-11-27 20:22
 * @problem:
 **/
public class ConcreteCommand extends ICommand{
    private Receiver receiver=new Receiver();

    @Override
    void execute() {

        System.out.println("ConcreteCommand execute");
        receiver.action();
    }
}
